#include <iostream>
#include <algorithm>

using namespace std;

const int N = 5;

int a[N];

int main()
{
	for (int i = 1; i <= 3; i++)	cin >> a[i];

	sort(a + 1, a + 1 + 3);

	cout << a[1] / __gcd(a[1], a[3]) << "/" << a[3] / __gcd(a[1], a[3]);

	return 0;
}